package com.ruoyi.labsafety.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.labsafety.service.ILabSafetyCheckTaskFileService;

/**
 * 安全检查任务附件Controller
 * 
 * @author jun.wang
 * @date 2022-04-25
 */
@RestController
@RequestMapping("/labsafety/taskFile")
public class LabSafetyCheckTaskFileController extends BaseController
{
    @Autowired
    private ILabSafetyCheckTaskFileService labSafetyCheckTaskFileService;

    /**
     * 查询安全检查任务附件列表
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:list')")
   /* @GetMapping("/list")
    public TableDataInfo list(LabSafetyCheckTaskFile labSafetyCheckTaskFile)
    {
        startPage();
        List<LabSafetyCheckTaskFile> list = labSafetyCheckTaskFileService.selectLabSafetyCheckTaskFileList(labSafetyCheckTaskFile);
        return getDataTable(list);
    }*/

    /**
     * 导出安全检查任务附件列表
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:export')")
   /* @Log(title = "安全检查任务附件", businessType = BusinessType.EXPORT)
    @GetMapping("/export")
    public AjaxResult export(LabSafetyCheckTaskFile labSafetyCheckTaskFile)
    {
        List<LabSafetyCheckTaskFile> list = labSafetyCheckTaskFileService.selectLabSafetyCheckTaskFileList(labSafetyCheckTaskFile);
        ExcelUtil<LabSafetyCheckTaskFile> util = new ExcelUtil<LabSafetyCheckTaskFile>(LabSafetyCheckTaskFile.class);
        return util.exportExcel(list, "taskFile");
    }*/

    /**
     * 获取安全检查任务附件详细信息
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:query')")
  /*  @GetMapping(value = "/{fileId}")
    public AjaxResult getInfo(@PathVariable("fileId") Long fileId)
    {
        return AjaxResult.success(labSafetyCheckTaskFileService.selectLabSafetyCheckTaskFileById(fileId));
    }*/

    /**
     * 新增安全检查任务附件
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:add')")
   /* @Log(title = "安全检查任务附件", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody LabSafetyCheckTaskFile labSafetyCheckTaskFile)
    {
        return toAjax(labSafetyCheckTaskFileService.insertLabSafetyCheckTaskFile(labSafetyCheckTaskFile));
    }
*/
    /**
     * 修改安全检查任务附件
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:edit')")
  /*  @Log(title = "安全检查任务附件", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody LabSafetyCheckTaskFile labSafetyCheckTaskFile)
    {
        return toAjax(labSafetyCheckTaskFileService.updateLabSafetyCheckTaskFile(labSafetyCheckTaskFile));
    }*/

    /**
     * 删除安全检查任务附件
     */
//    @PreAuthorize("@ss.hasPermi('labsafety:taskFile:remove')")
  /*  @Log(title = "安全检查任务附件", businessType = BusinessType.DELETE)
	  @DeleteMapping("/{fileIds}")
    public AjaxResult remove(@PathVariable Long[] fileIds)
    {
        return toAjax(labSafetyCheckTaskFileService.deleteLabSafetyCheckTaskFileByIds(fileIds));
    }*/
}
